package com.d3works.apps.production.service.configurator;

import com.d3works.apps.base.db.Product;
import com.d3works.apps.production.db.ConfiguratorProdProcess;
import com.d3works.apps.production.db.ProdProcess;
import com.d3works.exception.D3worksException;
import com.d3works.rpc.JsonContext;

public interface ConfiguratorProdProcessService {

  /**
   * Generate a prod process from a configurator prod process and a JsonContext holding the custom
   * values
   *
   * @param confProdProcess
   * @param attributes
   * @param product the generated product in configurator BOM.
   * @return
   */
  ProdProcess generateProdProcessService(
      ConfiguratorProdProcess confProdProcess, JsonContext attributes, Product product)
      throws D3worksException;
}
